package com.cw.DesignModel23.Behavioral.MediatorPattern.Mediator2;

/**
 * 抽象同事类
 */
public abstract class Colleague {
    /**
     * 关联 Mediator
     */
    private Mediator mediator;
    public String name;

    public Colleague(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }

    public Mediator GetMediator() {
        return this.mediator;
    }

    public abstract void SendMessage(int stateChange);
}

